package com.goodTimeStudio.productionLine.item;

import net.minecraft.item.Item;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

/*
 * @author JamesTang
 */

import java.util.Iterator;

@Mod.EventBusSubscriber(modid = "productionline")
public class IItemLoader {

    @SubscribeEvent
    public static void registerItem(RegistryEvent.Register<Item> event){
        Iterator<Item> iterator=IItems.items.iterator();
        while (iterator.hasNext()){
            event.getRegistry().register(iterator.next());
        }
    }
}
